package cn.cars.dao;

import cn.cars.pojo.Car;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarMapper {
    List<Car> carListPage(@Param("carName") String carName, @Param("carType") String carType, @Param("startIndex") int startIndex, @Param("pageSize") int pageSize);

    int count(@Param("carName") String carName, @Param("carType") String carType);

    Car findCarById(@Param("carId") int carId);

    int modify(Car car);
}
